package primary.code05_Tree;

/**
 * 含有指向父节点指针的树节点
 * @author Yudi Wang
 * @date 2021/7/13 9:25
 */
public class Nodep {
    public int data;
    public Nodep left;
    public Nodep right;
    public Nodep parent;

    public Nodep(int data) {
        this.data = data;
    }

    @Override
    public String toString() {
        return "Nodep{" +
                "data=" + data +
                ", left=" + left +
                ", right=" + right +
                ", parent=" + parent +
                '}';
    }
}
